---
deprecationMessage: Use a formatter like Prettier for formatting purposes.
description: Ensures the proper formatting of Angular expressions.
hasFix: true
optionExamples:
  - '[true, "check-interpolation"]'
  - '[true, "check-pipe"]'
  - '[true, "check-semicolon"]'
  - '[true, "check-interpolation", "check-pipe", "check-semicolon"]'
options:
  items:
    enum:
      - check-interpolation
      - check-pipe
      - check-semicolon
    type: string
  maxLength: 3
  minLength: 1
  type: array
optionsDescription: |-

  One (or both) of the following arguments must be provided:
  * `check-interpolation` - checks for whitespace before and after the interpolation characters.
  * `check-pipe` - checks for whitespace before and after a pipe.
  * `check-semicolon` - checks for whitespace after semicolon.
      
rationale: Having whitespace in the right places in an Angular expression makes the template more readable.
ruleName: angular-whitespace
type: style
typescriptOnly: true
layout: rule
title: 'Rule: angular-whitespace'
optionsJSON: |-
  {
    "items": {
      "enum": [
        "check-interpolation",
        "check-pipe",
        "check-semicolon"
      ],
      "type": "string"
    },
    "maxLength": 3,
    "minLength": 1,
    "type": "array"
  }
---